
<?php if (count($enterprise_consot) && count($eshop_consot) ): ?>
<!--<div class="row  ">-->
<section class="col-lg-6 ">
    <div class="box box-primary" id="center_const_report_box">
        <div class="box-header">
            <div  class="box-title col-md-12 no-padding col-xs-12">
                <h3>{$Think.lang.U8 中心费用汇总表}
                <div class="pull-right unit" >
                    <?php echo getUnitHtml('center_const_report'); ?>
                </div>
                </h3>
            </div>
            <div class="box-pane">
                <div class="search-form pull-left col-md-3  no-padding">
                    <form  action="__URL__" method="post" id="center_const_form">
                        <label class="" style="margin-left:20px;">{$Think.lang.年份}</label>
                        <select name="center_const_report_year" onchange="formPosition(this,'center_const_report_box')">
                            <?php $year = !$_SESSION['report_time']['center_const_report_year']? date('Y',time()):$_SESSION['report_time']['center_const_report_year']; ?>
                            {$years | renderOptions = $year}
                        </select>
                    </form>
                </div>
                <div class="pull-right col-md-2 text-right no-padding">
                    <a href="__URL__/exportExcel/report_name/center_const_report" class="glyphicon glyphicon-export" style="  padding: 6px;" title="excel"></a>
                </div>
            </div>
        </div>
        <div class="box-body table-responsive">
            <table class="table table-bordered table-striped " id="center_const_report" >
                <thead>
                    <th></th>
                    <th>{$Think.lang.费用}</th>
                    <th>{$Think.lang.销售额}</th>
                    <th>{$Think.lang.费用}</th>
                    <th>{$Think.lang.销售额}</th>
                </thead>
                <tbody>
                <tr>
                    <td></td>
                    <td><small>{$Think.lang.企业}</small></td>
                    <td><small>{$Think.lang.企业}</small></td>
                    <td><small>{$Think.lang.电商}</small></td>
                    <td><small>{$Think.lang.电商}</small></td>
                </tr>
                <volist name="enterprise_consot.list" id="val">
                    <tr>
                        <td>{$key+1}</td>
                        <td>{$val|number_format=2}</td>
                        <td>
                            <?php if($enterprise_consot['sales'][$key]['BQ_DFBB']): ?>
                            {$enterprise_consot['sales'][$key]['BQ_DFBB'] |number_format=2}
                            <?php endif; ?>
                        </td>
                        <td>{$eshop_consot['list'][$key]|number_format=2}</td>
                        <td>
                            <?php if($eshop_consot['sales'][$key]['BQ_DFBB']): ?>
                            {$eshop_consot['sales'][$key]['BQ_DFBB']|number_format=2}
                            <?php endif; ?>
                        </td>
                    </tr>
                </volist>
                <tr>
                    <td>{$Think.lang.合计}</td>
                    <td>{$enterprise_consot['sum']|number_format=2}</td>
                    <td>{$enterprise_consot['total_sales']|number_format=2}</td>
                    <td>{$eshop_consot['sum']|number_format=2}</td>
                    <td>{$eshop_consot['total_sales']|number_format=2}</td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</section>
<!--</div>-->
<?php endif; ?>

